package com.blocks57.homework.service;

import com.blocks57.homework.dto.ProductDTO;
import com.blocks57.homework.dto.ShoppingCartItemDTO;
import com.blocks57.homework.exception.DataNotFoundException;
import com.blocks57.homework.exception.DuplicateElementException;
import com.blocks57.homework.model.ShoppingCartItem;

import java.util.List;

/**
 * ShoppingCartService
 *
 * @author Tom at 2023-10-29
 */
public interface ShoppingCartItemService {

    String saveShoppingCartItem(ShoppingCartItemDTO shoppingCartItemDTO, Long userId) throws DuplicateElementException;

    public List<ShoppingCartItemDTO> findAll(Long userId);

    String updateShoppingCartItem(ShoppingCartItemDTO shoppingCartItemDTO, Long id) throws DataNotFoundException;

    String deleteShoppingCartItem(Long id, Long userId) throws DataNotFoundException;
    String clearShoppingCart(Long userId);
}
